import request from '@/utils/request'

export function fetchMetadataDirectoryList(data) {
  return request({
    url: '/system/masterdata/MetadataDirectory/list',
    method: 'post',
    data
  })
}

export function getMetadataDirectory(id) {
  return request({
    url: '/system/masterdata/MetadataDirectory/detail/' + id,
    method: 'get',
    params: { id }
  })
}

export function createMetadataDirectory(data) {
  return request({
    url: '/system/masterdata/MetadataDirectory/add',
    method: 'post',
    data
  })
}

export function updateMetadataDirectory(data) {
  return request({
    url: '/system/masterdata/MetadataDirectory/update',
    method: 'post',
    data
  })
}

export function deleteMetadataDirectory(ids) {
  return request({
    url: '/system/masterdata/MetadataDirectory/delete',
    method: 'post',
    data: { ids }
  })
}

